<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>CRM</title>
    <!--layui-->
    <link href="/resources/layui/css/layui.css" rel="stylesheet">
</head>
<body>
<div style="text-align: center;margin-top: 20px">
    <form class="layui-form">
        <div id="head" class="layui-form-item">
            <div class="layui-inline">
                <label class="layui-form-label">业务名</label>
                <div class="layui-input-inline">
                    <input id="name" class="layui-input" lay-verify="required" type="text"/>
                </div>
            </div>
            <div class="layui-inline">
                <label class="layui-form-label">业务描述</label>
                <div class="layui-input-block">
                    <input id="description" class="layui-input"/>
                </div>
            </div>
            <div class="layui-inline">
                <label class="layui-form-label">价格</label>
                <div class="layui-input-inline">
                    <input id="price" class="layui-input" lay-verify="number"/>
                </div>
            </div>
        </div>
        <div id="list" class="layui-collapse" style="margin-bottom:20px">
            <div class="layui-colla-item">
                <h2 class="layui-colla-title">步骤列表</h2>
                <div id="flowList" class="layui-colla-content layui-show">

                </div>
            </div>
        </div>
        <div id="mid" class="layui-form-item" hidden>
            <div id="updateFlow" class="layui-inline">
            </div>
            <div id="flowOrder" class="layui-inline">
                <label class="layui-form-label">顺序</label>
                <div class="layui-input-inline">
                    <input id="order" class="layui-input" lay-verify="required|number" value="1"/>
                </div>
            </div>
        </div>
        <div id="midden" class="layui-form-item" hidden>
            <div id="yesFlow" class="layui-inline">
                <button class="layui-btn" lay-submit lay-filter="yesFlow">确定</button>
            </div>
            <div id="cancelFlow" class="layui-inline">
                <button class="layui-btn" lay-submit lay-filter="cancelFlow">取消</button>
            </div>
        </div>
        <div id="bottom" class="layui-form-item">
            <div class="layui-inline">
                <button class="layui-btn" lay-submit lay-filter="yes" type="button">确定</button>
                <button id="cancel" class="layui-btn" type="button">取消</button>
                <button class="layui-btn" lay-submit lay-filter="addFlow" type="button">增加步骤</button>
                <button class="layui-btn" lay-submit lay-filter="updateFlow" type="button">更新步骤</button>
                <button class="layui-btn" lay-submit lay-filter="deleteFlow" type="button">删除步骤</button>
            </div>
        </div>
    </form>
</div>
<!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
<script src="/resources/jquery-3.1.1.js"></script>
<!--layui-->
<script src="/resources/layui/layui.js"></script>
<script src="/js/base/common.js"></script>
<script src="/js/business/business.add.edit.js"></script>
</body>
</html>